home *** CD-ROM | disk | FTP | other *** search
- /*
- * SimpleDrag.h Drag Manager sample program header
- *
- * v 1.0d2 7/93 Greg Robbins
- *
- */
-
- #include <QuickDraw.h>
- #include <StandardFile.h>
- #include <Fonts.h>
- #include <Menus.h>
- #include <Dialogs.h>
- #include <Events.h>
- #include <TextEdit.h>
- #include <OSEvents.h>
- #include <Desk.h>
- #include <AppleEvents.h>
- #include <GestaltEqu.h>
- #include <ToolUtils.h>
- #include <Processes.h>
- #include <Errors.h>
- #include <Drag.h>
- #ifdef THINK_C
- #include <BDC.h>
- #else
- #include <Packages.h>
- #endif
-
-
- // function prototypes
-
- pascal OSErr DoAEOpenApplication(AppleEvent *, AppleEvent *, long refCon);
- pascal OSErr DoAEOpenDocuments(AppleEvent *, AppleEvent *, long refCon);
- pascal OSErr DoAEQuitApplication(AppleEvent *, AppleEvent *, long refCon);
- void DoHighLevelEvent(EventRecord *);
- OSErr InstallAppleEventHandlers(void);
- void DrawWindow(WindowPtr);
- PicHandle GetWindowPicture(WindowPtr);
- OSErr SetWindowPicture(WindowPtr, PicHandle);
- OSErr SetEmptyWindowPicture(WindowPtr);
- OSErr SetWindowPictureFromFile(FSSpecPtr, WindowPtr);
- Boolean KeyIsDown(short);
- void ConcatPascalStrings(StringPtr, StringPtr);
- OSErr GetApplicationName(StringPtr);
- WindowPtr OpenPictureInNewWindow(FSSpecPtr);
- void DoOpen(void);
- WindowPtr DoNewWindow(void);
- void DoCloseWindow(WindowPtr);
- void DoQuit(void);
- WindowPtr DoAboutWindow(void);
- WindowPtr ReportErrorInWindow(WindowPtr, StringPtr, OSErr);
- WindowPtr ReportStringInWindow(WindowPtr, StringPtr);
- void CreateMenus(void);
- void DoMenuCommand(long);
-
- // routines to support dragging
-
- Boolean MouseIsInContentRgn(DragReference, WindowPtr);
- Boolean DragItemsAreAcceptable(DragReference);
- Boolean DragIsNotInSourceWindow(DragReference);
- pascal OSErr MyTrackingHandler(DragTrackingMessage, WindowPtr,
- void *, DragReference);
- pascal OSErr MyReceiveHandler(WindowPtr, void *, DragReference);
- OSErr InstallDragHandlers(WindowPtr theWindow);
- void RemoveDragHandlers(WindowPtr);
- void OutlineRegion(RgnHandle);
- OSErr DoWindowContentDrag(WindowPtr, EventRecord *);
-